package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_UserPayApplyItem", catalog="Id")
public class TbUserPayApplyItem extends BaseEntity<TbUserPayApplyItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="UserPaySlipidid", nameJava="userPaySlipidid", typeDataBase="bigint")
	private Long userPaySlipidid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbUserPayApplyItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TbUserPayApplyItem setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public Long getUserPaySlipidid() {
		return userPaySlipidid;
	}
	public TbUserPayApplyItem setUserPaySlipidid(Long userPaySlipidid) {
		this.userPaySlipidid = userPaySlipidid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbUserPayApplyItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbUserPayApplyItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbUserPayApplyItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbUserPayApplyItem tbUserPayApplyItem(
		Long pid,
		Long userPaySlipidid,
		Integer status
			) {
		TbUserPayApplyItem entity = new TbUserPayApplyItem();
		entity.setPid(pid);
		entity.setUserPaySlipidid(userPaySlipidid);
		entity.setStatus(status);
		return entity;
	}
}